﻿/**
 * @file MaterialFibersWapper.h
 * @brief 纤维材料 相关的python接口
 * @author wangning (2185896382@qq.com)
 * @date 2024-12-03
 */
#ifndef _PY_SEA_MATERIALFibers_WAPPER_H___
#define _PY_SEA_MATERIALFibers_WAPPER_H___

#include <QString>
#include <QObject>
#include "PythonInterfaceAPI.h"
#include "FITK_Component/FITKAcousticsPhysics/PyFITKMaterialsFibers.h"

class Fibers : public Acoustics::PyFITKMaterialsFibers
{
public:
    explicit Fibers(const QString& name);
    explicit Fibers();
    virtual ~Fibers() = default;
};

/**
 * @brief 纤维材料相关PYTHON接口装饰
 * @author wangning (2185896382@qq.com)
 * @date 2024-12-03
 */
class PythonInterfaceAPI MaterialFibersWapper : public QObject
{
    Q_OBJECT
public slots:
    Fibers* new_Fibers();

    void delete_Fibers(Fibers* obj);
    /**
     * @brief 在Python解释器中通过名称获取对象
     * @author wangning (2185896382@qq.com)
     * @date 2024-12-03
     */
    Fibers* static_Fibers_GetFibers(const QString& name);
    /**
     * @brief 获取名称
     * @author wangning (2185896382@qq.com)
     * @date 2024-12-03
     */
    QString getName(Fibers* obj);
    /**
     * @brief 设置名称
     * @author wangning (2185896382@qq.com)
     * @date 2024-12-03
     */
    void setName(Fibers* obj, const QString& name);
    /**
     * @brief  设置密度和流阻率
     * @param[i]  density：密度
     * @param[i]  flowResistivity：流阻率
     * @author wangning (2185896382@qq.com)
     * @date   2024-12-03
     */
    void setDensityResistivity(Fibers* obj, double density, double flowResistivity);
    /**
     * @brief  设置刚性柔性框架
     * @param[i]  porosity：孔隙率
     * @param[i]  tortuosity： 曲折度
     * @param[i]  viscousLength： 粘性特征长度
     * @param[i]  thermalLength： 热特征长度
     * @author wangning (2185896382@qq.com)
     * @date   2024-12-03
     */
    void setRigidLimpFrame(Fibers* obj, double porosity, double tortuosity, double viscousLength, double thermalLength);
    /**
     * @brief  创建材料
     * @param[i]  name：材料名称
     * @author wangning (2185896382@qq.com)
     * @date   2024-12-03
     */
    void createMaterial(Fibers* obj, const QString& name);

};

#endif

